package com.zhh.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient // 服务提供者开启nacos
@EnableFeignClients(basePackages = {"com.zhh.springcloud"})  // 开启feign的扫描路径
@ComponentScan("com.zhh.springcloud")  // spring扫描，以便找到feign类
public class Consumer_feign_9002 {

    public static void main(String[] args) {
        SpringApplication.run(Consumer_feign_9002.class, args);
    }
}
